package com.wlz.principle.lsp.LsBird;

/**
 * @author： wlz
 * @Date 2020/7/31 11:06
 * @description： TODO  动物类
 * @version: 1.0
 */
public class Animal {

    double runSpeed;

    public void setRunSpeed(double speed) {
        runSpeed=speed;
    }

    public double getRunTime(double distance) {
        return(distance/runSpeed);
    }
}
